using System;
using Core.Base;
using Core.Contracts.Enums;
using Core.Contracts.Interfaces;
using Core.Extensions;
using Core.Features;
using Core.Resources;

namespace Core.Items.Robots
{
    
    public sealed class ArtemisMk2: RobotBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="T:Core.Items.Robots.ArtemisMk2"/> class.
        /// </summary>
        public ArtemisMk2()
            : base(
            "Artemis Mk2",
            Traduction.desc_artemis,
            FactionsEnum.Thelodica,
            RobotTechnologyLevel.Mk2,
            RobotSizesEnum.Mech,
            new ISlot[]
                {
                    new Slot(0,SlotGroupsEnum.Chassis,SlotTypesEnum.Turret|SlotTypesEnum.Misc|SlotTypesEnum.Industrial, SizesEnum.Small|SizesEnum.Medium),
                    new Slot(0,SlotGroupsEnum.Chassis,SlotTypesEnum.Turret|SlotTypesEnum.Misc, SizesEnum.Small|SizesEnum.Medium),
                    new Slot(0,SlotGroupsEnum.Chassis,SlotTypesEnum.Turret|SlotTypesEnum.Misc|SlotTypesEnum.Industrial, SizesEnum.Small|SizesEnum.Medium),
                    new Slot(0,SlotGroupsEnum.Chassis,SlotTypesEnum.Turret|SlotTypesEnum.Missile|SlotTypesEnum.Misc, SizesEnum.Small|SizesEnum.Medium),
                    new Slot(0,SlotGroupsEnum.Chassis,SlotTypesEnum.Missile, SizesEnum.Small|SizesEnum.Medium),
                    new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Legs, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Legs, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Legs, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Legs, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Legs, SlotTypesEnum.Modules)
                },
            new IFeature<object>[]
                {
                    new AccumulatorCapacity<double>(3000),
                    new AccumulatorRechargeTime<double>(420),
                    new CpuPerformance<double>(255),
                    new ReactorPerformance<double>(1100),
                    new ArmorAmount<double>(3100),
                    new ChemicalResistance<double>(30),
                    new KineticResistance<double>(150),
                    new SeismicResistance<double>(10),
                    new ThermalResistance<double>(45),
                    new ChemicalEHP<double>(0),
                    new KineticEHP<double>(0),
                    new SeismicEHP<double>(0),
                    new ThermalEHP<double>(0),
                    new SurfaceHitSize<double>(8),
                    new InterferenceEmission<double>(6),
                    new InterferenceMinimum<double>(90),
                    new InterferencePeak<double>(335),
                    new InterferenceRadius<double>(300),
                    new LockingRange<double>(300),
                    new LockingTime<double>(12.50),
                    new MaximumTargets<double>(7),
                    new MissileGuidanceFailure<double>(0.1),
                    new SensorStrength<double>(120),
                    new SignalDetection<double>(120),
                    new SignalMasking<double>(80),
                    new ReloadingTime<double>(10),
                    new CargoCapacity<double>(9),
                    new RobotMass<double>(28560),
                    new SlopeCapacity<double>(45),
                    new TopSpeed<double>(57.60),
                    new Volume<double>(19),
                    new DemobilizerResistance<double>(0),
                    new CriticalHitChance<double>(0)
                },
            new IBonusModifier[]
                {
                    new BonusModifier<AdvancedRobotics>(FeatureTypesEnum.Robot, FeaturesEnum.CriticalHitChance, 0.01){ Unit = UnitsEnum.Percentage, DisplayName = "Critical hit chance"}, 
                    new BonusModifier<AdvancedRobotics>(FeatureTypesEnum.Module, FeaturesEnum.MediumLaserDamage, 0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Medium laser Damage"}, 
                    new BonusModifier<ThelodicaRobotControl>(FeatureTypesEnum.Module, FeaturesEnum.MediumLaserCycleTime, 0.01){ Unit = UnitsEnum.Percentage, DisplayName = "Medium laser Cycle Time"},
                    new BonusModifier<ThelodicaRobotControl>(FeatureTypesEnum.Module, FeaturesEnum.SmallLaserCycleTime, 0.01){ Unit = UnitsEnum.Percentage, DisplayName = "Small laser Cycle Time"},
                    new BonusModifier<AdvancedRobotics>(FeatureTypesEnum.Robot, FeaturesEnum.ChemicalResistance, 0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Passive Chemical resistance"}, 
                    new BonusModifier<AdvancedRobotics>(FeatureTypesEnum.Robot, FeaturesEnum.SeismicResistance, 0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Passive Seismic resistance"}, 
                    new BonusModifier<AdvancedRobotics>(FeatureTypesEnum.Robot, FeaturesEnum.KineticResistance, 0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Passive Kinetic resistance"}, 
                    new BonusModifier<AdvancedRobotics>(FeatureTypesEnum.Robot, FeaturesEnum.ThermalResistance, 0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Passive Thermal resistance"}, 
                    new BonusModifier<ThelodicaRobotControl>(FeatureTypesEnum.Robot, FeaturesEnum.AccumulatorCapacity, 0.01){ Unit = UnitsEnum.Percentage, DisplayName = "Accumulator capacity"}, 
                },
            new ICondition<IExtension>[]
                {
                    new ExtensionCondition<ThelodicaRobotControl>(7), 
                    new ExtensionCondition<AdvancedRobotics>(1)
                } )
        {
        }
        
    }
}